package cn.com.thingo.hyintelligent.base.contract;

import cn.com.thingo.hyintelligent.base.BasePresenter;
import cn.com.thingo.hyintelligent.base.BaseView;
import cn.com.thingo.hyintelligent.model.bean.BaseBean;
import cn.com.thingo.hyintelligent.model.bean.EzAccountBean;
import cn.com.thingo.hyintelligent.model.bean.CommonBean;
import cn.com.thingo.hyintelligent.model.bean.GetEzTokenBean;
import cn.com.thingo.hyintelligent.model.bean.UserBean;
import cn.com.thingo.hyintelligent.model.bean.MessageCountBean;

public interface MainContract {
    interface View extends BaseView {
        void viewCreateEzAccountResult(BaseBean ezAccountBean);
        void viewAddMessage(CommonBean commonBean);
        void viewMessageCount(MessageCountBean messageCountBean);
        void  viewGetAdminEzAccessToken(BaseBean<String> ezTokenBean);
        void  getSonAccountMsg(BaseBean<EzAccountBean> bean);
        void  ezInitError();
    }

    interface Presenter extends BasePresenter<MainContract.View> {


        void createEzAccount(String token, String md5AccountName, String md5Password,String accessToken);
        void messageCount(String token);

        void addMessage(String token, String title, String content);


        void  getAdminEzAccessToken(String token,String secret,String appkey);

        void  getSonAccountMsg(String token ,String accessToken);
    }
}
